package com.zlf.demo.controller;


import com.zlf.demo.model.Goods;
import com.zlf.demo.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 货物管理信息表 前端控制器
 * </p>
 *
 * @author zhanglongfei
 * @since 2021-01-06
 */
@RestController
@RequestMapping("/goods")
public class GoodsController {

    @Autowired
    private GoodsService goodsService;

    @RequestMapping("/list_1")
    public List<Goods> list_1() {
        return goodsService.listmaster();
    }

    @RequestMapping("/list_2")
    public List<Goods> list_2() {
        return goodsService.listslave();
    }



}
